.class public Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;


# instance fields
.field private a:Lcom/waiqin365/lightapp/view/SearchView;

.field private b:Landroid/widget/ListView;

.field private c:Lcom/waiqin365/lightapp/deptmanager/a/a;

.field private d:Ljava/util/List;

.field private e:Lcom/waiqin365/lightapp/deptmanager/c/a;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->d:Ljava/util/List;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->d:Ljava/util/List;

    return-object v0
.end method

.method private a()V
    .locals 1

    const v0, 0x7f0c0131

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/SearchView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    const v0, 0x7f0c0539

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->b:Landroid/widget/ListView;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->e:Lcom/waiqin365/lightapp/deptmanager/c/a;

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->d:Ljava/util/List;

    invoke-static {p1}, Lcom/waiqin365/lightapp/deptmanager/d/a;->c(Ljava/lang/String;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :cond_0
    :goto_0
    new-instance v0, Lcom/waiqin365/lightapp/deptmanager/ab;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/deptmanager/ab;-><init>(Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;)V

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->d:Ljava/util/List;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->e:Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v1

    invoke-static {p1, v1}, Lcom/waiqin365/lightapp/deptmanager/d/a;->b(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto :goto_0
.end method

.method private b()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    new-instance v1, Lcom/waiqin365/lightapp/deptmanager/x;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/deptmanager/x;-><init>(Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setClearListener(Lcom/waiqin365/lightapp/view/hk;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    new-instance v1, Lcom/waiqin365/lightapp/deptmanager/y;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/deptmanager/y;-><init>(Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setSearchListener(Lcom/waiqin365/lightapp/view/hm;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    new-instance v1, Lcom/waiqin365/lightapp/deptmanager/z;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/deptmanager/z;-><init>(Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setOnSearchKeyChangedListener(Lcom/waiqin365/lightapp/view/hl;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    const v1, 0x7f080326

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setHint(Ljava/lang/CharSequence;)V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->c()V

    return-void
.end method

.method private c()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->c:Lcom/waiqin365/lightapp/deptmanager/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/a/a;->notifyDataSetChanged()V

    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f03013a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->b()V

    new-instance v0, Lcom/waiqin365/lightapp/deptmanager/a/a;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->mContext:Landroid/content/Context;

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->d:Ljava/util/List;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/deptmanager/a/a;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->c:Lcom/waiqin365/lightapp/deptmanager/a/a;

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->b:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->c:Lcom/waiqin365/lightapp/deptmanager/a/a;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "deptId"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->b(Ljava/lang/String;)Lcom/waiqin365/lightapp/deptmanager/c/a;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->e:Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/fiberhome/gaea/client/a/b;->addObserver(Ljava/util/Observer;)V

    return-void
.end method

.method public refreshActivity(Lcom/fiberhome/gaea/client/a/c;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->a:Lcom/waiqin365/lightapp/view/SearchView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/SearchView;->a()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/DMEmpSearchActivity;->a(Ljava/lang/String;)V

    return-void
.end method
